cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(demo_screen)

find_package(KF5Screen REQUIRED)
find_package(QT NAMES Qt5 REQUIRED COMPONENTS Core)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core )

add_executable(${PROJECT_NAME} main.cpp devicemanager.cpp devicemonitor.cpp screeninfo.cpp)

target_link_libraries(${PROJECT_NAME} KF5::Screen)
target_link_libraries(${PROJECT_NAME} Qt5::Core)